﻿<UserControl x:Class="Flux.Editor.Controls.TilesetPanel"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="300"
             SizeChanged="TilesetPanel_OnSizeChanged">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="25"/>
            <RowDefinition/>
        </Grid.RowDefinitions>
        <Grid Grid.Row="0" Background="#314362">
            <Grid.ColumnDefinitions>
                <ColumnDefinition/>
                <ColumnDefinition/>
            </Grid.ColumnDefinitions>
            <ComboBox x:Name="cboTilesets" Grid.Column="0" SelectionChanged="TilesetsSelectionChanged"/>
            <TextBlock x:Name="txtTileInfo" Grid.Column="1" Margin="4,0,0,0" VerticalAlignment="Center" Foreground="White"/>
        </Grid>
        <Canvas x:Name="canvas"  Grid.Row="1" Background="#3F587F" MouseMove="Canvas_OnMouseMove" IsHitTestVisible="True" MouseLeftButtonDown="Canvas_OnMouseLeftButtonDown" MouseRightButtonDown="Canvas_OnMouseRightButtonDown"/>
    </Grid>
</UserControl>
